package com.example.controller;

import com.example.service.Impl.CourseServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author T
 * @description
 * @date 2025年03月06日 23:10
 */
@RestController
@RequestMapping("course")
public class CourseController {


    @Resource
    private CourseServiceImpl courseService;

    @GetMapping("get/{id}")
    public void getCourseById(@PathVariable("id") Long id) {
        courseService.getCourseById(id);
    }

}
